package com.jyh.db.entity;

import java.util.ArrayList;
import java.util.List;

public class JyhChannelListExample {
    /**
     * jyh_channel_list
     */
    protected String orderByClause;

    /**
     * jyh_channel_list
     */
    protected boolean distinct;

    /**
     * jyh_channel_list
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public JyhChannelListExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-28
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * jyh_channel_list 2017-10-28
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andChannelnumberIsNull() {
            addCriterion("channelNumber is null");
            return (Criteria) this;
        }

        public Criteria andChannelnumberIsNotNull() {
            addCriterion("channelNumber is not null");
            return (Criteria) this;
        }

        public Criteria andChannelnumberEqualTo(String value) {
            addCriterion("channelNumber =", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberNotEqualTo(String value) {
            addCriterion("channelNumber <>", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberGreaterThan(String value) {
            addCriterion("channelNumber >", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberGreaterThanOrEqualTo(String value) {
            addCriterion("channelNumber >=", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberLessThan(String value) {
            addCriterion("channelNumber <", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberLessThanOrEqualTo(String value) {
            addCriterion("channelNumber <=", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberLike(String value) {
            addCriterion("channelNumber like", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberNotLike(String value) {
            addCriterion("channelNumber not like", value, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberIn(List<String> values) {
            addCriterion("channelNumber in", values, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberNotIn(List<String> values) {
            addCriterion("channelNumber not in", values, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberBetween(String value1, String value2) {
            addCriterion("channelNumber between", value1, value2, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnumberNotBetween(String value1, String value2) {
            addCriterion("channelNumber not between", value1, value2, "channelnumber");
            return (Criteria) this;
        }

        public Criteria andChannelnameIsNull() {
            addCriterion("channelName is null");
            return (Criteria) this;
        }

        public Criteria andChannelnameIsNotNull() {
            addCriterion("channelName is not null");
            return (Criteria) this;
        }

        public Criteria andChannelnameEqualTo(String value) {
            addCriterion("channelName =", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameNotEqualTo(String value) {
            addCriterion("channelName <>", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameGreaterThan(String value) {
            addCriterion("channelName >", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameGreaterThanOrEqualTo(String value) {
            addCriterion("channelName >=", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameLessThan(String value) {
            addCriterion("channelName <", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameLessThanOrEqualTo(String value) {
            addCriterion("channelName <=", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameLike(String value) {
            addCriterion("channelName like", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameNotLike(String value) {
            addCriterion("channelName not like", value, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameIn(List<String> values) {
            addCriterion("channelName in", values, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameNotIn(List<String> values) {
            addCriterion("channelName not in", values, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameBetween(String value1, String value2) {
            addCriterion("channelName between", value1, value2, "channelname");
            return (Criteria) this;
        }

        public Criteria andChannelnameNotBetween(String value1, String value2) {
            addCriterion("channelName not between", value1, value2, "channelname");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdIsNull() {
            addCriterion("generalize_id is null");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdIsNotNull() {
            addCriterion("generalize_id is not null");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdEqualTo(String value) {
            addCriterion("generalize_id =", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdNotEqualTo(String value) {
            addCriterion("generalize_id <>", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdGreaterThan(String value) {
            addCriterion("generalize_id >", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdGreaterThanOrEqualTo(String value) {
            addCriterion("generalize_id >=", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdLessThan(String value) {
            addCriterion("generalize_id <", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdLessThanOrEqualTo(String value) {
            addCriterion("generalize_id <=", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdLike(String value) {
            addCriterion("generalize_id like", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdNotLike(String value) {
            addCriterion("generalize_id not like", value, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdIn(List<String> values) {
            addCriterion("generalize_id in", values, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdNotIn(List<String> values) {
            addCriterion("generalize_id not in", values, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdBetween(String value1, String value2) {
            addCriterion("generalize_id between", value1, value2, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andGeneralizeIdNotBetween(String value1, String value2) {
            addCriterion("generalize_id not between", value1, value2, "generalizeId");
            return (Criteria) this;
        }

        public Criteria andLinkSiteIsNull() {
            addCriterion("link_site is null");
            return (Criteria) this;
        }

        public Criteria andLinkSiteIsNotNull() {
            addCriterion("link_site is not null");
            return (Criteria) this;
        }

        public Criteria andLinkSiteEqualTo(String value) {
            addCriterion("link_site =", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteNotEqualTo(String value) {
            addCriterion("link_site <>", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteGreaterThan(String value) {
            addCriterion("link_site >", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteGreaterThanOrEqualTo(String value) {
            addCriterion("link_site >=", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteLessThan(String value) {
            addCriterion("link_site <", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteLessThanOrEqualTo(String value) {
            addCriterion("link_site <=", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteLike(String value) {
            addCriterion("link_site like", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteNotLike(String value) {
            addCriterion("link_site not like", value, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteIn(List<String> values) {
            addCriterion("link_site in", values, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteNotIn(List<String> values) {
            addCriterion("link_site not in", values, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteBetween(String value1, String value2) {
            addCriterion("link_site between", value1, value2, "linkSite");
            return (Criteria) this;
        }

        public Criteria andLinkSiteNotBetween(String value1, String value2) {
            addCriterion("link_site not between", value1, value2, "linkSite");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationIsNull() {
            addCriterion("generalize_abbreviation is null");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationIsNotNull() {
            addCriterion("generalize_abbreviation is not null");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationEqualTo(String value) {
            addCriterion("generalize_abbreviation =", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationNotEqualTo(String value) {
            addCriterion("generalize_abbreviation <>", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationGreaterThan(String value) {
            addCriterion("generalize_abbreviation >", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationGreaterThanOrEqualTo(String value) {
            addCriterion("generalize_abbreviation >=", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationLessThan(String value) {
            addCriterion("generalize_abbreviation <", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationLessThanOrEqualTo(String value) {
            addCriterion("generalize_abbreviation <=", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationLike(String value) {
            addCriterion("generalize_abbreviation like", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationNotLike(String value) {
            addCriterion("generalize_abbreviation not like", value, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationIn(List<String> values) {
            addCriterion("generalize_abbreviation in", values, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationNotIn(List<String> values) {
            addCriterion("generalize_abbreviation not in", values, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationBetween(String value1, String value2) {
            addCriterion("generalize_abbreviation between", value1, value2, "generalizeAbbreviation");
            return (Criteria) this;
        }

        public Criteria andGeneralizeAbbreviationNotBetween(String value1, String value2) {
            addCriterion("generalize_abbreviation not between", value1, value2, "generalizeAbbreviation");
            return (Criteria) this;
        }
    }

    /**
     * jyh_channel_list
     *
     * @mbggenerated do_not_delete_during_merge 2017-10-28
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * jyh_channel_list 2017-10-28
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}